<html>
<head>
    @include('v1.common.meta')
    <link rel="stylesheet" href="{{elixir('css/basicdata.css')}}">
</head>
<body>
<div class="yjs-grid">
    <div class="yjs-grid-box">
        <div class="layui-tab">
            @if(Auth::check())
                <div class="layui-container">
                    <!-- 功能按钮区 -->
                    <div class="layui-row">
                        <div class="layui-col-md12">
                            <fieldset class="layui-elem-field">
                                <legend>编辑【{{$cloth['name']}}】尺寸信息</legend>
                                <div class="layui-field-box">
                                    <div class="layui-form layui-form-pane" name="clothSizeForm"
                                         action="javascript:;" method="POST">

                                        <input type="hidden" name="viewType" value="{{$view}}">
                                        <input type="hidden" name="code" value="{{$cloth['code']}}">
                                        <input type="hidden" name="arrival_code" value="{{$cloth['arrival_code']}}">


                                        <input type="text" id="code" name="code"
                                               lay-filter="code"
                                               style="display: none"
                                               value="{{$cloth['code']}}"
                                               class="layui-input">


                                        <input type="text" id="arrival_code" name="arrival_code"
                                               lay-filter="code"
                                               style="display: none"
                                               value="{{$cloth['arrival_code']}}"
                                               class="layui-input">

                                    </div>

                                    <div class="layui-row">
                                        <div class="layui-col-md12">
                                            <table class="layui-table" id="dataBody" lay-filter="clothSizeList">
                                            </table>
                                        </div>
                                    </div>

                                </div>
                            </fieldset>
                        </div>
                    </div>
                    <!-- 数据显示区 -->

                </div>
            @else
                <div class="layui-container">
                    <div class="layui-row">
                        <div class="layui-col-md12">
                            <blockquote class="layui-elem-quote-error">
                                友情提示：该功能只面向已成功登录系统，并具有相应权限的用户可用。
                            </blockquote>
                        </div>
                    </div>
                </div>
            @endif
        </div>
    </div>
</div>
@include('v1.common.js')
<script type="text/html" id="groupBtn">
    <div class="layui-btn-group">
        <a class="layui-btn layui-btn-mini layui-btn-danger" lay-event="deleteData"><i class="yjs-icon">&#xe643;</i> 删除</a>
    </div>
</script>
<script src="{{elixir('js/clothSize.js')}}"></script>
</body>
</html>





